<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head lang="en" th:replace="Administrator/main/publics :: #public_style">
</head>
<body class="publicbody">
<header class="header1" th:replace="Administrator/main/publics :: #public_header">

</header>

<section class="public_main">

    <!-- <nav> 标签定义导航链接的部分。 -->
    <div class="left" th:replace="Administrator/main/publics :: #public_left">

    </div>

    <form id="searchteacherForm" th:action="@{/teacher}" th:method="get" action="/teacher" method="get">
        <div class="search">
            <span>老师名称：</span>
            <input type="text" th:value="${teachername}" name="name" placeholder="请输入老师名字"/>
            <!--获取表单id，并用submit提交-->

            <input type="button" onclick="$('#searchteacherForm').submit()" value="查询"/>
            <a th:href="@{/teachers}" href="/provider">添加老师</a>

        </div>
    </form>

    <table class="teacherright" border="1" >
        <caption><h1>教师信息管理</h1></caption>
        <tr class="teachertr1">
            <th>教师编码</th>
            <th>教师姓名</th>
            <th>年龄</th>
            <th>登录名</th>
            <th>密码</th>
            <th>邮箱</th>
            <th>电话</th>
            <th>学院</th>
            <th>职务</th>
            <th>操作</th>

        </tr>
        <tr class="teachertr2" th:each="t: ${teachers}">

            <td th:text="${t.getId()}">2222</td>
            <td th:text="${t.getName()}">zlj</td>
            <td th:text="${t.getAge()}">12</td>
            <td th:text="${t.getLoginUserName()}">zzz</td>
            <td th:text="${t.getPassword()}">ada</td>
            <td th:text="${t.getEmail()}">dd</td>
            <td th:text="${t.getNumber()}">dd</td>
            <td th:text="${t.getColleague()}">dd</td>
            <td th:text="${t.getDuty()}">dddd</td>
            <td>
                <a th:href="@{/teachers/}+${t.id}" href="/provider/1"><img src="/img/read.png" alt="查看" title="查看"/></a>
                <a th:href="@{/teachers/}+${t.id}+'?type=teacherinformationmanagementupdate'"href="/provider/1?type=update"><img src="/img/xiugai.png" alt="修改" title="修改"/></a>
                <a th:attr="del_uri=@{/teachers/}+${t.id}" href="#" class="delete" del_uri="/provider/1" ><img src="/img/schu.png" alt="删除" title="删除"/></a>
            </td>


        </tr>


    </table>

</section>
<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<form method="post" id="deleteForm" >
    <input type="hidden" name="_method" value="delete">

    <div class="remove" id="removeProv">
        <div class="removerChid">
            <h2>提示</h2>
            <div class="removeMain" >
                <p>你确定要删除吗？</p>
                <a href="#" id="yes">确定</a>
                <a href="#" id="no">取消</a>
            </div>
        </div>
    </div>

</form>
<!-- <a> 标签的 target 属性规定在何处打开链接文档。
    属性：
_blank	在新窗口中打开被链接文档。
_self	默认。在相同的框架中打开被链接文档。
_parent	在父框架集中打开被链接文档。
_top	在整个窗口中打开被链接文档。
framename	在指定的框架中打开被链接文档。
 -->
<footer class="footer" id="public_footer" th:replace="Administrator/main/publics :: #public_footer">

</footer>
<script src="../js/jquery.js"></script>

<script th:src="@{/js/js.js}" src="../js/js.js"></script>
</body>
</html>